
package com.ruifu.common.feign.fallback;

import com.ruifu.common.feign.RemoteDocService;
import com.ruifu.common.po.DmDocVer;
import com.ruifu.common.vo.worksheet.WsCommonSheet;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author lcq
 * @date 2020/5/14
 */
@Slf4j
@Component
public class RemoteDocServiceFallbackImpl implements RemoteDocService {
	@Setter
	private Throwable cause;


	@Override
	public DmDocVer feignFindByIdDoc(Long dvDvId) {
		log.error("feign feignFindByIdDoc:{}", dvDvId, cause);
		return null;
	}

	@Override
	public Integer feignUpdateDoc(DmDocVer dmDocVer) {
		log.error("feign feignUpdateDoc:{}", dmDocVer, cause);
		return null;
	}

	@Override
	public Boolean feignCopyPermission(Integer sourceTenantId, Integer newTenantId,String form) {
		log.error("feign feignCopyPermission:{}{}", sourceTenantId,newTenantId, cause);
		return null;
	}

	@Override
	public Boolean feignCopyDocType(Integer sourceTenantId, Integer newTenantId,String form) {
		log.error("feign feignCopyDocType:{}{}", sourceTenantId,newTenantId,cause);
		return null;
	}

	@Override
	public String feignWorkFormPermissions(WsCommonSheet wsCommonSheet) {
		log.error("feign feignWorkFormPermissions:{}", wsCommonSheet,cause);
		return null;
	}
}
